<?php
/*
 * Created on 2011-11-21
 *
 * @Author chengjinsheng
 * 
 */
error_reporting(E_ALL);
@set_magic_quotes_runtime(0);

$mtime = explode(' ', microtime());
$starttime = $mtime[1] + $mtime[0];

define('IN_QA', 'api');
define('QA_ROOT', dirname(__FILE__).'/');
unset($GLOBALS, $_ENV, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_ENV_VARS);
require QA_ROOT.'release/release.php';
include QA_ROOT.'config/init.cfg.php';


$c = coreFun::getgpc('c');
$file = 'api/' . $c . '.php';
if(file_exists($file)) {
	include $file;
} else {
	exit('API not found!');
}

